<ng-container *ngIf="pmReqItem&&deal.agree">
  <p>请求者：<a nz-typography nzType="success">{{ pmReqItem.fromName || '匿名' }}</a></p>
  <p>留言：<span nz-typography nzType="warning"><u>{{ pmReqItem.message }}</u></span></p>
  <p>文件列表(共 {{fileList.length}} 个)：</p>
  <ng-container>
    <nz-table #editRowTable [nzData]="fileList"
              style="width: 100%;" nzShowPagination="false" nzBordered="false"
              [nzScroll]="{ y: '300px' }" [nzLoading]="listLoading">
      <thead>
      <tr>
        <th>名称</th>
        <th nzWidth="100px">大小</th>
        <th nzWidth="200px">修改日期</th>
      </tr>
      </thead>
      <tbody style="width: 100%;">
      <tr *ngFor="let file of editRowTable.data;">
        <td><img style="width: 20px" [src]="getImgURL(file)" alt="未知类型"> {{file['name']}}</td>
        <!--          <td>{{ file.type }}</td>-->
        <td>{{ (file.size | nzBytes) || '-' }}</td>
        <td>{{ file.lastModified | date:'yyyy-MM-dd HH:mm:ss'}}</td>
      </tr>
      </tbody>
    </nz-table>
  </ng-container>
  <div style="margin-top: 10px">
    请求权限：
    <label nz-checkbox disabled [(ngModel)]="pmReqItem.detail.create">创建</label>
    <label nz-checkbox disabled [(ngModel)]="pmReqItem.detail.copy">复制</label>
    <label nz-checkbox disabled [(ngModel)]="pmReqItem.detail.move">移动</label>
    <label nz-checkbox disabled [(ngModel)]="pmReqItem.detail.delete">删除</label>
    <label nz-checkbox disabled [(ngModel)]="pmReqItem.detail.download">下载</label>
    <label nz-checkbox disabled [(ngModel)]="pmReqItem.detail.view">可见</label>
    <label nz-checkbox disabled [(ngModel)]="pmReqItem.detail.edit">修改</label>
    <br/>
  </div>
  <div style="margin-top: 10px">
    权限级别：
    <nz-radio-group [(ngModel)]="deal.type">
      <label nz-radio-button nzValue="ann"><i nz-icon nzType="question"></i> 匿名</label>
      <label nz-radio-button nzValue="user" [nzDisabled]="isAnn"><i nz-icon nzType="user"></i> 用户</label>
      <label nz-radio-button nzValue="custom" [nzDisabled]="isAnn"><i nz-icon nzType="group"></i> 用户组</label>
    </nz-radio-group>
    <div style="margin-top: 10px" *ngIf="deal.type=='custom'">
      选择分组：
      <nz-select style="min-width: 100px;margin-left: 5px" [nzMaxTagCount]="3"
                 [nzMaxTagPlaceholder]="tagPlaceHolder" nzMode="multiple" nzPlaceHolder="请选择分组"
                 [(ngModel)]="deal.customGroup">
        <nz-option *ngFor="let item of groupList" [nzLabel]="item.name" [nzValue]="item.id"></nz-option>
      </nz-select>
      <ng-template #tagPlaceHolder let-selectedList>隐藏了{{ selectedList.length }}个选择</ng-template>

    </div>

    <div style="margin-top: 10px">
      更改权限：
      <label nz-checkbox [(ngModel)]="deal.agree.create">创建</label>
      <label nz-checkbox [(ngModel)]="deal.agree.copy">复制</label>
      <label nz-checkbox [(ngModel)]="deal.agree.move">移动</label>
      <label nz-checkbox [(ngModel)]="deal.agree.delete">删除</label>
      <label nz-checkbox [(ngModel)]="deal.agree.download">下载</label>
      <label nz-checkbox [(ngModel)]="deal.agree.view">可见</label>
      <label nz-checkbox [(ngModel)]="deal.agree.edit">修改</label>
      <br/>
    </div>
  </div>
  <div class="bby-dialog-footer">
    <button nz-button nzType="default" [nzLoading]="submitLoading" (click)="close()">取消</button>
    <button nz-button nzType="default" [nzLoading]="submitLoading" (click)="rejectClick()">拒绝</button>
    <button nz-button nzType="primary" [nzLoading]="submitLoading" (click)="applyClick()">设置权限</button>
  </div>

</ng-container>
